﻿using System;
using Sanelib.Dto;

namespace Common.Commands.MemberCommands
{
    public class RegisterMemberCard : Command
    {
        public string TagId { get; set; }

        public override Guid? GetAggregateId()
        {
            return null;
        }

        public override ErrorResult Validate()
        {
            var validationResult = new ErrorResult();

            if (string.IsNullOrEmpty(TagId))
                validationResult.AddError("TagId", "is empty.");

            return validationResult;
        }
    }
}